package com.briup.MR.Merge.reduce;

import org.apache.hadoop.io.WritableComparable;
import org.apache.hadoop.io.WritableComparator;

/**
 *
 */
public class MergeReduceGroup extends WritableComparator {
    public MergeReduceGroup(){
        super(TextTuple.class,true);
    }

    @Override
    public int compare(WritableComparable a, WritableComparable b) {
        TextTuple x= (TextTuple) a;
        TextTuple y= (TextTuple) b;
        return x.getUid().compareTo(y.getUid());
    }
}
